<?php
require_once(dirname(dirname(__FILE__)) . '/app.php');

$serviceList = Service::GetAll();
$vipList = Users::GetAll();
$shopTempList = Shop::GetAllShops();
$shopList = array();
foreach($shopTempList as $k => $v){
	$shopList[ $v['id'] ] = $v;
}

$bookTotalList = array();
$bookDetailList = array();
foreach ($vipList as $k => $v ){
	$bookTotalList[ $v['id'] ] = Preengage::GetStaticCount( $v['id'] );
	$temp = array();
	foreach ($serviceList as $k1 => $v1){
		$temp[ $v1['id'] ] = Preengage::GetStaticCount( $v['id'], $v1['id'] );
	}
	$bookDetailList[ $v['id'] ] = $temp;
}

include template('/service/vip_user_list');


//include template('service_staff_index');
//include template('subscribe');
